from sqlalchemy import create_engine, text

from connection import mysql_engine

# print(sqlalchemy.__version__)
mysql_conn = mysql_engine.connect()


with mysql_engine.connect() as conn:
    sql = "select * from Book"
    result = mysql_conn.execute(text(sql))
    print(result.all())
